import Vue from 'vue'
import Router from 'vue-router'
import top from '@/components/top'
import command from '@/components/command'
import mylove from '@/components/mylove'
import topic from '@/components/topic'
import search from '@/components/search'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'top',
      component: top,
      children:[
      	{
      		path: '/',
	        name: 'command',
	        component: command,
      	},
        {
          path: '/command',
          name: 'command',
          component: command,
        },
        {
          path: '/mylove',
          name: 'mylove',
          component: mylove,
        },
        {
          path: '/topic',
          name: 'topic',
          component: topic,
        }
      ]
    },{
      path: '/search',
      name: 'search',
      component: search,
    }
  ]
})
